#ifndef __MOTOR_H
#define __MOTOR_H

#include <stdio.h>


typedef enum {
    MOTOR1=0,
    MOTOR2,
    MOTOR3,
    MOTOR4
}MOTORID;

typedef struct 
{
	uint16_t m1;
	uint16_t m2;
	uint16_t m3;
	uint16_t m4;
	
}motorPWM_t;

void motor_init(void);
void getMotorPWM(motorPWM_t* get);
void motorsSetRatio(MOTORID id, uint16_t ithrust);
void motorSetAll(uint16_t ithrust);
void motorTest(void);
#endif 